<?php

namespace Modules\Admin\Http\Requests;


class CommonIdRequest extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'id' => 'required|integer',
        ];
    }

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    public function messages(){

        return [
            'id.required' 				=> '缺少参数（id）！',
            'id.integer' 	=> '（id）参数错误！',
        ];
    }
}
